# !/bin/bash

# fedora系统的话，取消下面的注释
# 使mkfontscale和mkfontdir命令正常运行
# yum install mkfontscale 
# 使fc-cache命令正常运行。如果提示 fc-cache: command not found
# yum install fontconfig

sudo apt-get install -y xfonts-utils 
sudo apt-get install -y fontconfig



sudo mkdir /usr/share/fonts/myfonts
sudo cp ./*.ttf /usr/share/fonts/myfonts/  
sudo chmod -R /usr/share/fonts/myfonts 755

cd /usr/share/fonts/myfonts/
mkfontscale
mkfontdir
fc-cache -fv
